//
//  YDASearchView.h
//  siyanone
//
//  Created by LK-IOS on 2018/3/27.
//  Copyright © 2018年 LK-News. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YDASearchView;

@protocol SYASearchViewDelegate <NSObject>

@optional

/**
 开始搜索
 
 @param searchView 搜索界面
 @param string 搜索字段
 */
-(void)aSearchView:(YDASearchView *)searchView searchString:(NSString *)string isStoreHistory:(BOOL)isHistory;


@end

@interface YDASearchView : UIView

//搜索框进入编辑状态
-(void)searhBarBeginFirstResgister;
//搜索框结束编辑
-(void)searhBarEndEditor;
//点击历史记录开始搜索
-(void)searchWithSearchString:(NSString *)searchString;

@property (nonatomic , weak)id<SYASearchViewDelegate>delegate;



@end
